<html>
<head>
<title>Index.ets</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #a9b7c6;}
.s1 { color: #faa23d;}
.s2 { color: #aa7dfc;}
.s3 { color: #e2da90;}
.s4 { color: #bbb529;}
.s5 { color: #db7e9b;}
</style>
</head>
<body bgcolor="#2b2b2b">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
Index.ets</font>
</center></td></tr></table>
<pre><span class="s0">import </span><span class="s1">{ </span><span class="s0">add </span><span class="s1">} </span><span class="s0">from </span><span class="s2">'./add'</span><span class="s3">;</span>
<span class="s0">import </span><span class="s1">{ </span><span class="s0">main </span><span class="s1">} </span><span class="s0">from </span><span class="s2">'./main'</span><span class="s3">;</span>
<span class="s0">import </span><span class="s1">{ </span><span class="s0">message </span><span class="s1">} </span><span class="s0">from </span><span class="s2">'./message'</span><span class="s3">;</span>
<span class="s0">import </span><span class="s1">{ </span><span class="s0">shop </span><span class="s1">} </span><span class="s0">from </span><span class="s2">'./shop'</span><span class="s3">;</span>
<span class="s0">import </span><span class="s1">{ </span><span class="s0">user </span><span class="s1">} </span><span class="s0">from </span><span class="s2">'./user'</span><span class="s3">;</span>

<span class="s4">@</span><span class="s0">Entry</span>
<span class="s4">@</span><span class="s0">Component</span>
<span class="s0">struct Index </span><span class="s1">{</span>
  <span class="s4">@</span><span class="s0">Provide</span>
  <span class="s0">stackPath</span><span class="s3">: </span><span class="s0">NavPathStack </span><span class="s3">= </span><span class="s0">new NavPathStack</span><span class="s5">()</span><span class="s3">;</span>
  <span class="s0">build</span><span class="s5">() </span><span class="s1">{</span>
    <span class="s0">Navigation</span><span class="s5">(</span><span class="s0">this</span><span class="s3">.</span><span class="s0">stackPath</span><span class="s5">)</span><span class="s1">{</span>
      <span class="s0">Tabs</span><span class="s5">(</span><span class="s1">{ </span><span class="s0">barPosition</span><span class="s3">: </span><span class="s0">BarPosition</span><span class="s3">.</span><span class="s0">End </span><span class="s1">}</span><span class="s5">) </span><span class="s1">{</span>
        <span class="s0">TabContent</span><span class="s5">() </span><span class="s1">{</span>
          <span class="s0">main</span><span class="s5">()</span>
        <span class="s1">}</span>
        <span class="s3">.</span><span class="s0">tabBar</span><span class="s5">(</span><span class="s2">'首页'</span><span class="s5">)</span>
        <span class="s0">TabContent</span><span class="s5">() </span><span class="s1">{</span>
          <span class="s0">shop</span><span class="s5">()</span>
        <span class="s1">}</span>
        <span class="s3">.</span><span class="s0">tabBar</span><span class="s5">(</span><span class="s2">'商城'</span><span class="s5">)</span>
        <span class="s0">TabContent</span><span class="s5">() </span><span class="s1">{</span>
          <span class="s0">add</span><span class="s5">()</span>
        <span class="s1">}</span>
        <span class="s3">.</span><span class="s0">tabBar</span><span class="s5">(</span><span class="s1">{</span><span class="s0">icon</span><span class="s3">:</span><span class="s0">$r</span><span class="s5">(</span><span class="s2">'app.media.jh'</span><span class="s5">)</span><span class="s1">}</span><span class="s5">)</span>
        <span class="s0">TabContent</span><span class="s5">() </span><span class="s1">{</span>
            <span class="s0">message</span><span class="s5">()</span>
        <span class="s1">}</span>
        <span class="s3">.</span><span class="s0">tabBar</span><span class="s5">(</span><span class="s2">'消息'</span><span class="s5">)</span>
        <span class="s0">TabContent</span><span class="s5">() </span><span class="s1">{</span>
          <span class="s0">user</span><span class="s5">()</span>
        <span class="s1">}</span>
        <span class="s3">.</span><span class="s0">tabBar</span><span class="s5">(</span><span class="s2">&quot;我的&quot;</span><span class="s5">)</span>
      <span class="s1">}</span>
    <span class="s1">}</span><span class="s3">.</span><span class="s0">hideTitleBar</span><span class="s5">(</span><span class="s0">true</span><span class="s5">)</span>
  <span class="s1">}</span>
<span class="s1">}</span>
</pre>
</body>
</html>